using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 第十一次作业
{
    static class Program
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            //创建，连接数据库；建表
            string connectionString = "data source=data.sqlite";
            SQLiteConnection con = new SQLiteConnection(connectionString);
            con.Open();
            SQLiteCommand cmd = new SQLiteCommand(con);
            cmd.CommandText = "create table if not exists E_C(Chinese nvarchar(50),English nvarchar(50))";
            cmd.ExecuteNonQuery();
            cmd.CommandText = "insert into E_C values('放弃','abandon')";
            cmd.ExecuteNonQuery();
            cmd.CommandText = "insert into E_C values('苹果','apple')";
            cmd.ExecuteNonQuery();
            cmd.CommandText = "insert into E_C values('橙','orange')";
            cmd.ExecuteNonQuery();
            con.Close();

            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
